// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeVRoutersResponse.h"

namespace aliyun { namespace Ecs {

DescribeVRoutersResponse::DescribeVRoutersResponse() {
}

const std::vector<RouteTableId>& DescribeVRoutersResponse::VRouter::GetRouteTableIds(void) const {
  return RouteTableIds_;
}

const string& DescribeVRoutersResponse::VRouter::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeVRoutersResponse::VRouter::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeVRoutersResponse::VRouter::GetVRouterName(void) const {
  return VRouterName_;
}

const string& DescribeVRoutersResponse::VRouter::GetDescription(void) const {
  return Description_;
}

const string& DescribeVRoutersResponse::VRouter::GetVRouterId(void) const {
  return VRouterId_;
}

const string& DescribeVRoutersResponse::VRouter::GetCreationTime(void) const {
  return CreationTime_;
}

const std::vector<DescribeVRoutersResponse::VRouter>& DescribeVRoutersResponse::GetVRouters(void) const {
  return VRouters_;
}

int DescribeVRoutersResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeVRoutersResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeVRoutersResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeVRoutersResponse::BaseKey(void) {
  return "DescribeVRoutersResponse";
}

void DescribeVRoutersResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int VRouters__length = 0;
  UnmarshallerInt(VRouters__length, response_map, "DescribeVRoutersResponse.VRouters.Length");
  if(VRouters__length >= 0) {
    VRouters_.resize(VRouters__length);
    for(int i1 = 0; i1 < VRouters__length; i1++) {
      int VRouters_i1_RouteTableIds__length = 0;
      UnmarshallerInt(VRouters_i1_RouteTableIds__length, response_map, "DescribeVRoutersResponse.VRouters[+"+string_ValueOfInt(i1)+"].RouteTableIds.Length");
      if(VRouters_i1_RouteTableIds__length >= 0) {
        VRouters_[i1].RouteTableIds_.resize(VRouters_i1_RouteTableIds__length);
        for(int i2 = 0; i2 < VRouters_i1_RouteTableIds__length; i2++) {
          UnmarshallerString(VRouters_[i1].RouteTableIds_[i2], response_map, "DescribeVRoutersResponse.VRouters[+"+string_ValueOfInt(i1)+"].RouteTableIds["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < VRouters_i1_RouteTableIds__length; i2++) {
      } // if(VRouters_i1_RouteTableIds__length >= 0) {

      UnmarshallerString(VRouters_[i1].RegionId_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(VRouters_[i1].VpcId_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].VpcId");
      UnmarshallerString(VRouters_[i1].VRouterName_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].VRouterName");
      UnmarshallerString(VRouters_[i1].Description_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(VRouters_[i1].VRouterId_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].VRouterId");
      UnmarshallerString(VRouters_[i1].CreationTime_, response_map, "DescribeVRoutersResponse.VRouters["+string_ValueOfInt(i1)+"].CreationTime");
    } // for(int i1 = 0; i1 < VRouters__length; i1++) {
  } // if(VRouters__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeVRoutersResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeVRoutersResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeVRoutersResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
